import Page from '../../common/page';
// Page({
// });
Page({
    data: {
      text: "This is page data.",
      newcodes:[],
      newcoder:{},
      htnlText:""
    },
    onLoad:function(options) {
      console.log(options.id);

      var _that = this;
        wx.request({
            url: 'http://localhost:8888/newcoderdetail?id='+options.id,
            header: {
              'content-type': 'application/json' // 默认值
            },
            success (res) {
              console.log(res.data)
              _that.setData({
                newcoder:res.data
              });
              // var htmltxt = res.data[0].content;
              
              //console.log(_that.data.newcodes)
            }
          })
          
    }
  })
  